﻿@model Entidad.Marca
@{
    ViewBag.Title = "Modificar Marca";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<h2>Modificar Marca</h2>
@*<div id="container" class="row-fluid">
    <!-- BEGIN PAGE -->
    <div id="main-content">
        <!-- BEGIN PAGE CONTAINER-->
        <div class="container-fluid">
            <div class="widget-body">*@
<!-- BEGIN PAGE HEADER-->
<!-- END PAGE HEADER-->
<!-- ******CONTENT BODY GOES HERE*******  -->
<div class="span12">
    <!-- BEGIN BASIC CHART PORTLET-->
    <div class="widget black">
        <div class="widget-title">
            <h4><i class="icon-plus-sign"></i> Modificar Marca</h4>
            <span class="tools">
                <a href="javascript:;" class="icon-chevron-down"></a>
                <a href="javascript:;" class="icon-remove"></a>
            </span>
        </div>
        <div class="widget-body">

            @using (Html.BeginForm("Modificar", "Marca", FormMethod.Post))
            {
                @Html.AntiForgeryToken()
                @Html.ValidationSummary(true)

                //FORMULARIO

                <div class="form-group">
                    @Html.LabelFor(model => model.Id, new { @class = "control-label col-md-2" })
                    <div class="col-md-10">
                        @Html.TextBoxFor(model => model.Id, new { @class = "form-control" })
                        @Html.ValidationMessageFor(model => model.Id)
                    </div>
                </div>

                <div class="form-group">
                    @Html.LabelFor(model => model.Denominacion, new { @class = "control-label col-md-2" })
                    <div class="col-md-10">
                        @Html.TextBoxFor(model => model.Denominacion, new { @class = "form-control" })
                        @Html.ValidationMessageFor(model => model.Denominacion)
                    </div>
                </div>

                <div class="form-group">
                    @Html.LabelFor(model => model.Proveedor, new { @class = "control-label col-md-2" })
                    <div class="col-md-10">
                        @Html.DropDownListFor(m => m.Proveedor.Id, (SelectList)ViewData["proveedores"], Model.Proveedor.Id)
                        @Html.ValidationMessageFor(model => model.Proveedor.Id)
                    </div>
                </div>          
                
                <div class="form-group">
                    @Html.LabelFor(model => model.Estado, new { @class = "control-label col-md-2" })
                    <div class="col-md-10">
                        @Html.DropDownListFor(m => m.Estado.Id, (SelectList)ViewData["estados"], Model.Estado.Id)
                        @Html.ValidationMessageFor(model => model.Estado.Id)
                    </div>
                </div>                 

                <div class="form-group">
                    <div class="col-md-offset-2 col-md-10">
                        <input type="submit" value="Modificar Marca" class="btn btn-info" />
                    </div>
                </div>

            }
            <div>
                @Html.ActionLink("Volver al Listado", "Index")
            </div>
        </div>
    </div>
    <!-- END BASIC CHART PORTLET-->
</div>
<!-- END PAGE CONTENT-->
@*</div>
            </div>
            <!-- END PAGE CONTAINER-->
        </div>
        <!-- END PAGE -->
    </div>*@
<!-- END CONTAINER -->
@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
